﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LibParasInject
{
    internal struct FuncTableFileItem
    {
        public int id;
        public string name;
        public bool enabled;
        public bool enableChildren;

        public FuncTableFileItem(int id, string name)
        {
            name = name.Replace(" ", "/*Space*/");

            this.id = id;
            this.name = name;
            this.enabled = true;
            this.enableChildren = true;
        }

        public override string ToString()
        {
            return string.Format(
                "{0} {1} {2} {3}",
                id,
                name,
                enabled ? "1" : "0",
                enableChildren ? "1" : "0"
            );
        }
    }
}
